Involutions on Relational Program Calculi
نویسندگان
چکیده
The standard Galois connection between the relational and predicate-transformer models of sequential programming (defined in terms of weakest precondition) confers a certain similarity between them. This paper investigates the extent to which the important involution on transformers (which, for instance, interchanges demonic and angelic nondeterminism, and reduces the two kinds of simulation in the relational model to one kind in the transformer model) carries over to relations. It is shown that no exact analogue exists; that the two complement-based involutions are too weak to be of much use; but that the translation to relations of transformer involution under the Galois connection is just strong enough to support Boolean-algebrastyle reasoning, a claim that is substantiated by proving properties of deterministic computations. Throughout, the setting is that of the guarded-command language augmented by the usual specification commands; and where possible algebraic reasoning is used in place of the more conventional semantic reasoning.
منابع مشابه
A Relational Derivation of a Functional Program
This article is an introduction to the use of relational calculi in deriving programs. We present a derivation in a relational language of a functional program that adds one bit to a binary number. The resulting program is unsurprising, being the standard ‘column of half–adders’, but the derivation illustrates a number of points about working with relations rather than functions.
متن کاملTowards a Relational Programming Language
Qualifying dissertation submitted in application for transfer to D.Phil. status. Abstract Until recently, the art of deriving computer programs from speciication has been performed equationally in a functional calculus. However, it has become evident that a relational calculus aaords us a greater degree of expression and exibility in both speciication and proof since a relational calculus natur...
متن کامل{41 () Constraint Query Algebras
Constraint query languages are natural extensions of relational database query languages. A framework for their declarative speciication (constraint calculi) and eecient implementation (low data complexity and secondary storage indexing) was presented in Kanellakis et al., 1995. Constraint query algebras form a procedural language layer between high-level declarative calculi and low-level index...
متن کاملEntangled abstract domains for higher-order programs
Relational abstract domains are a cornerstone of static analysis for first-order programs. We explore challenges in generalizing relational abstract domains to higher-order program analysis. We find two reasonable, orthogonal and complementary interpretations of relational domains in a higher-order setting. The first technique, locally relational abstract domains, are relational abstract domain...
متن کاملSigned Involutions Avoiding 2-letter Signed Patterns
Let In be the class of all signed involutions in the hyperoctahedral group Bn and let In(T ) be the set of involutions in In which avoid a set T of signed patterns. In this paper, we complete a further case of the program initiated by Simion and Schmidt [6] by enumerating In(T ) for all signed permutations T ⊆ B2.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Sci. Ann. Comp. Sci.
دوره 18 شماره
صفحات -
تاریخ انتشار 2008